package cn.common.tool;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import cn.common.dao.BaseDao;

public class dele extends BaseDao
{
	public int dele(String sql)  throws SQLException
	{
		
		Connection conn;
	
		Statement sta;
		int a;
		
		try
		{
			conn = this.getConn();
			sta	 = conn.createStatement();
			sta.executeUpdate(sql);
			return 1;
		}
		catch(SQLException e)
		{
			System.out.println("����ʧ��"+e);
			return 0;
		}
	}
}
